home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / machserver / 1.098 / lfs / lfsDescMapInt.h < prev    next >
C/C++ Source or Header  |  1990-10-19  |  2KB  |  55 lines

  1. /*
  2.  * lfsDescMapInt.h --
  3.  *
  4.  *    Declarations of LFS descriptor map routines and data structures
  5.  *    private to the Lfs module.
  6.  *
  7.  * Copyright 1989 Regents of the University of California
  8.  * Permission to use, copy, modify, and distribute this
  9.  * software and its documentation for any purpose and without
  10.  * fee is hereby granted, provided that the above copyright
  11.  * notice appear in all copies.  The University of California
  12.  * makes no representations about the suitability of this
  13.  * software for any purpose.  It is provided "as is" without
  14.  * express or implied warranty.
  15.  *
  16.  * $Header: /sprite/src/kernel/lfs/RCS/lfsDescMapInt.h,v 1.2 90/10/19 17:22:41 mendel Exp $ SPRITE (Berkeley)
  17.  */
  18.  
  19. #ifndef _LFSDESCMAPINT
  20. #define _LFSDESCMAPINT
  21.  
  22. #include <lfsDescMap.h>
  23. #include <lfsStableMemInt.h>
  24.  
  25. /* constants */
  26.  
  27. /* data structures */
  28.  
  29. typedef struct LfsDescMap {
  30.     LfsStableMem    stableMem;/* Stable memory supporting the map. */
  31.     LfsDescMapParams    params;      /* Map parameters taken from super block. */
  32.     LfsDescMapCheckPoint checkPoint; /* Desc map data written at checkpoint. */
  33. } LfsDescMap;
  34.  
  35. /* procedures */
  36. extern void LfsDescMapInit _ARGS_((void));
  37.  
  38. extern void LfsDescCacheInit _ARGS_((struct Lfs *lfsPtr));
  39. extern ReturnStatus LfsDescMapGetVersion _ARGS_((struct Lfs *lfsPtr,
  40.             int fileNumber, unsigned short *versionNumPtr));
  41. extern ReturnStatus LfsDescMapIncVersion _ARGS_((struct Lfs *lfsPtr, 
  42.             int fileNumber, int *versionPtr));
  43. extern ReturnStatus LfsDescMapGetDiskAddr _ARGS_((struct Lfs *lfsPtr, 
  44.             int fileNumber, LfsDiskAddr *diskAddrPtr));
  45. extern ReturnStatus LfsDescMapSetDiskAddr _ARGS_((struct Lfs *lfsPtr, 
  46.             int fileNumber, LfsDiskAddr diskAddr));
  47. extern ReturnStatus LfsDescMapGetAccessTime _ARGS_((struct Lfs *lfsPtr,
  48.             int fileNumber, int *accessTimePtr));
  49. extern ReturnStatus LfsDescMapSetAccessTime _ARGS_((struct Lfs *lfsPtr, 
  50.             int fileNumber, int accessTime));
  51.  
  52.  
  53. #endif /* _LFSDESCMAPINT */
  54.  
  55.